package com.log4jviewer.ui.preferences;

/**
 * Class contains default preferences for LogView, LogFile and Filters.
 * 
 * @author <a href="mailto:rd.ryly@gmail.com">Ruslan Diachenko</a>
 */
public class DefaultPreferences {

    // Class defines log view default preferences.
    public static final class LogViewPreferences {

        private static final String ID = "log_view_buffer";

        private static final int DEFAULT_PREFERENCES = 30000;

        public static String getId() {
            return ID;
        }

        public static int getDefaultPreferences() {
            return DEFAULT_PREFERENCES;
        }
    }

    // Class defines log file default preferences.
    public static final class LogFilePreferences {

        private static final String ID = "layout_pattern";

        private static final String DEFAULT_PREFERENCES = "%p [%c{1}] %L %m%n";

        public static String getId() {
            return ID;
        }

        public static String getDefaultPreferences() {
            return DEFAULT_PREFERENCES;
        }
    }

    // Class defines filter default preferences (which filter is in active state).
    public static final class FilterPreferences {

        private static final String ID = "active_filter";

        private static final int DEFAULT_PREFERENCES = 0;

        public static String getId() {
            return ID;
        }

        public static int getDefaultPreferences() {
            return DEFAULT_PREFERENCES;
        }
    }
}
